<layout name='../Layout/header_footer' />
<!-- main start -->
		<div class="warp">
        <div class="w950 nav">
				<a href="__APP__">首页</a>
				<span>&gt;</span>
				<a href="{:U('product',array('pt'=>$pro_type[0]["type_id"]))}">{$pro_type[0].type_name}</a>
	       	 	<span>&gt;</span>
				<a style="color:#d23956" href="javascript:;">{$product_1[0].pro_name}</a>
			</div>
<div class="w950 detail">
<div class="fn-clear goodsDetail">
					<div class="fn-left fn-clear goodsPicView">
						<div class="sPicView">
							<div class="picBox">
								<ul style="width: 75px;">
									<li class="opa" style="opacity: 1;">
									<img src="__PUBLIC__/Imgs/Products/m_{$product_1[0].pro_img}" data-original="__PUBLIC__/Imgs/Products/m_{$product_1[0].pro_img}" width="70px" height="70px" alt="{$product_1[0].pro_name}" style="display: inline;">
									</li>
                                </ul>
							</div>
							<div class="imgPrev" style="display: none;"><span class="lprev">上一页</span></div>
							<div class="imgNext" style="display: none;"><span class="lnext">下一页</span></div>
						</div>
						<div class="bPicView"><img src="__PUBLIC__/Imgs/Products/m_{$product_1[0].pro_img}" width="400px" height="359px" alt="{$product_1[0].pro_name}"></div>
					</div>
					<div class="fn-right goodsInfo">
						<div class="goodsCol1">
							<h1 class="goodsName" title="{$product_1[0].pro_name}"><strong>{$product_1[0].pro_name}</strong><em class="gift"></em></h1>
							<div class="fn-clear gNinfo">
								<p class="gNinfo1">
									<span class="gN1">商品编号：</span>
									<span class="gN2" id="dis_postPurchaseCode">{$product_1[0].pro_id}</span>
								</p>
								<div class="clew"></div>
								<p class="gNinfo3">
									<span class="gN1">100%</span>
									<span class="gN2">好评</span>
								</p>
							</div>
                            							<p class="gNinfo4">
								<span class="gN1">商品特色：</span>
								<span class="gN2">{$product_1[0].pro_detail}&nbsp;&nbsp;</span>
							</p>
                            						</div>
						<div class="fn-clear goodsCol2">
							<div class="fn-left goodsCleft">
								<div class="goodsPrice">
									<div>
                                    	<div class="goodsPrice1">零&nbsp;售&nbsp;价：<span><del style="font-size:14px">¥<span id="m_price" style="font-size:12px;">{$product_1[0].pro_selprice}</span></del></span></div>
                                    </div>
									<div id="generalBuy">
                                    	<div class="fn-clear goodsPrice3"><label id="yp_name">批&nbsp;发&nbsp;价（10件以上）：</label><span id="dis_salePrice">￥<strong>{$product_1[0].pro_batprice}</strong></span></div>
                                    </div>
									<div>
                                    	<div class="goodsPrice2" id="promotion_price_label"><!--促销价--></div>
                                   	</div>
                                    <div id="qianggouBuy"><!--抢购价--></div>
								</div>
                                <div id="groupBuy"><!--两件购买--></div>
                                <div id="integralBuy"><!--积分购买--></div>
								<div class="goodsPointer"><!--<span>购买单件赠送<span id="qgpoints"><strong id="dis_points">0</strong></span>个积分</span>-->
                                
                                </div>
							</div>
							<div class="fn-right rankPrice" id="a_icon"></div>
						</div>
                        
                       
                        <form action="__URL__/add" method="post" id="form1" name="form1">
						<input type="hidden" id="product_id" name="product_id" value="{$product_1[0].pro_id}">
						<div class="goodsCol4">
							<div class="goodsNorms">                        
								<dl class="fn-clear norBuy">
									<dt class="norTit">我&nbsp;要&nbsp;买：</dt>
									<dd class="fn-clear norCon">
										<div class="norNum"><input type="text" id="order_shuliang" name="order_shuliang" value="1" style="text-align:center;width:50px;"></div>
										<p id="l_huowu">&nbsp;&nbsp;库存有货，立即发货</p>
									</dd>
								</dl>
								<dl class="fn-clear norBuy">
									<dt class="norTit">用&nbsp;户&nbsp;名：</dt>
									<dd class="fn-clear norCon">
										<div class="norNum"><input type="text" id="cus_name" name="cus_name" value="" style="width:100px;"></div>
									</dd>
								</dl>
								<dl class="fn-clear norBuy">
									<dt class="norTit">手&nbsp;机&nbsp;号：</dt>
									<dd class="fn-clear norCon">
										<div class="norNum"><input type="text" id="cus_phone" name="cus_phone" value="" style="width:100px;"></div>
									</dd>
								</dl>
								<dl class="fn-clear norBuy">
									<dt class="norTit">送货地址：</dt>
									<dd class="fn-clear norCon">
										<div class="norNum"><input type="text" id="cus_address" name="cus_address" value="" style="width:280px;"></div>
									</dd>
								</dl>
								<div class="fn-clear norBtns">
									<div class="fn-left">
										<a onclick="javascript:check();return false;" href="#" class="norBuy" id="add_cart">
                                        	<img id="l_addcart" src="__PUBLIC__/images/card.jpg" width="142px" height="40px">
                                        </a>
									</div>
                                    
								</div>
							</div>
						</div>
						</form>
						<div class="fn-clear goodsCol5"></div>
					</div>
				</div>
	      </div>
		</div>
        
        
<!-- main end -->

<!-- footer start -->
<script type="text/javascript">
	function check(){
		var form1 = document.getElementById("form1");
		var reg = new RegExp("^[0-9]*$");
		if(form1.order_shuliang.value == ""){
			alert("购买数量不能为空！");
			return false; 
		}
		if(!reg.test(form1.order_shuliang.value)){
			alert("购买数量需为数字！");
			return false; 
		}
		if(form1.cus_name.value == ""){
			alert("用户名不能为空！");
			return false; 
		}
		if(form1.cus_phone.value == ""){
			alert("手机号不能为空！");
			return false; 
		}
		if(!(/^13[0-9]{9}$|^15[012356789][0-9]{8}$|^18[0-9]{9}$|^14[57][0-9]{8}$/.test(form1.cus_phone.value)))
		{
			alert("请填写有效的手机号！");
			return false; 
		}
		if(!reg.test(form1.cus_phone.value)){
			alert("手机号需为数字！");
			return false; 
		}
		if(form1.cus_address.value == ""){
			alert("送货地址不能为空！");
			return false; 
		}
		document.getElementById("form1").submit();
		return true;
	}
</script>